package com.yx.ehis.system;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {
	@Override
	public void createInitialLayout(IPageLayout layout) {
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		String editorArea = layout.getEditorArea();
		// 系统菜单
		layout.addView("com.yx.ehis.system.SystemMenu", IPageLayout.LEFT,
				0.15f, editorArea);
		layout.getViewLayout("com.yx.ehis.system.SystemMenu").setCloseable(
				false);
		layout.getViewLayout("com.yx.ehis.system.SystemMenu")
				.setMoveable(false);
		// 总览
		layout.addView("com.yx.ehis.system.Overview", IPageLayout.RIGHT, 0.85f,
				editorArea);
		layout.getViewLayout("com.yx.ehis.system.Overview").setCloseable(false);
		layout.getViewLayout("com.yx.ehis.system.Overview").setMoveable(false);
	}
}
